package com.vanysoft.framework.config.file;

import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * @author liuzh
 * @since 2017/2/5.
 */
@Configuration
@EnableConfigurationProperties(FileProperties.class)
public class FileConfiguration {

//	@Autowired
//	private FileProperties fileProperties;//可扩展其他路径

//	public String getUserHeadImgBasePath(){
//		return fileProperties.getUserHeadImgBasePath();
//		
//	}

//	@Bean
//	public MultipartResolver multipartResolver() {
//		CommonsMultipartResolver multipartResolver = new CommonsMultipartResolver();
//		multipartResolver.setMaxUploadSize(1000000); // XXX 设置值的讲究是啥
//		return multipartResolver;
//	}
}
